home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / test3D source ƒ / test3D.r < prev   
Encoding:
Text File  |  1995-10-27  |  8.1 KB  |  310 lines  |  [TEXT/KAHL]

  1. //----------------------------------------------------------------------------------
  2. // File        : test3D.r
  3. // Date        : July 23, 1994
  4. // Author    : Jim Stout
  5. //            :
  6. // Purpose    : rez source for test3D.c
  7. //----------------------------------------------------------------------------------
  8. #define systemSevenOrLater 1
  9.  
  10. #include <Types.r> 
  11. include "debug.rsrc";            // contains the dummy CDEF 128
  12.  
  13. #define CDEF0 0
  14. #define CDEF 128                // used in CNTL templates below
  15. #define useWFont 8                // use window font
  16. #define useWBG 4                // use window background color
  17. #define WANTGRAY 1
  18.  
  19. // this resource will be set by test3D.c and used by the dummy CDEF
  20.  
  21. data 'CJMP' (128, "CDEFmain address") {
  22.     $"0000 0000"
  23. };
  24.  
  25. // this resource will color dialog id=128 - and is needed to allow the 'cctb's to work
  26.  
  27. resource 'dctb' (128) {
  28.     {    /* array ColorSpec: 5 elements */
  29. #if WANTGRAY
  30.         /* [1] */        wContentColor, 0xEEEE, 0xDDDD, 0xDDDD,    // colored background
  31. #else
  32.         /* [1] */        wContentColor, 65535, 65535, 65535,        // white background
  33. #endif
  34.         /* [2] */        wFrameColor, 0, 0, 0,
  35.         /* [3] */        wTextColor, 0, 0, 0,
  36.         /* [4] */        wHiliteColor, 0, 0, 0,
  37.         /* [5] */        wTitleBarColor, 65535, 65535, 65535
  38.     }
  39. };
  40. resource 'DLOG' (128, "Test 3D Button", purgeable) {
  41.     {44, 10, 274, 429},    
  42.     movableDBoxProc,    visible,    nogoAway,    
  43.     0x0,    
  44.     128,    
  45.     "Test saButton"
  46. #ifdef systemSevenOrLater
  47.     , centerMainScreen
  48. #endif
  49. };
  50.  
  51.  
  52. resource 'DITL' (128) {
  53.     {
  54.         /* [1] */    {197, 348, 217, 407},        Control        {    enabled,    128        },
  55.         /* [2] */    {167, 348, 187, 407},        Control     {    enabled,    129        },
  56.         
  57.         
  58.         /* [3] */    {40, 300, 56, 410},            Control     {    enabled,    130        },
  59.         /* [4] */    {66, 300, 98, 410},            Control     {    enabled,    131        }, 
  60.         
  61.         /* [5] */    {107, 300, 123, 410},        Control        {    enabled,    132        },
  62.         /* [6] */    {128, 300, 144, 410},        Control        {    enabled,    133        },
  63.     
  64.         /* [7] */    {197, 208, 217, 267},        Control        {    enabled,    150        },
  65.         
  66.         /* [8] */    {40, 160, 56, 290},            Control     {    enabled,    152        },
  67.         /* [9] */    {66, 160, 98, 290},            Control     {    enabled,    153        },
  68.         
  69.         /* [10] */    {107, 160, 123, 290},        Control     {    enabled,    154        },
  70.         /* [11] */    {128, 160, 144, 290},        Control     {    enabled,    155        },
  71.         
  72.         /* [12] */    {17, 10, 37, 70},            Control        {     enabled,    256        },
  73.         /* [13] */    {47, 10, 67, 70},            Control        {     enabled,    257        },
  74.         /* [14] */    {77, 10, 97, 70},            Control        {     enabled,    258        },
  75.         /* [15] */    {107, 10, 127, 70},            Control        {     enabled,    259        },
  76.         /* [16] */    {137, 10, 157, 70},            Control        {     enabled,    260        },
  77.         /* [17] */    {167, 10, 187, 70},            Control        {     enabled,    261        },
  78.         /* [18] */    {197, 10, 217, 70},            Control        {     enabled,    262        },
  79.         
  80.         /* [19] */    {17, 80, 37, 140},            Control        {     enabled,    512        },
  81.         /* [20] */    {47, 80, 67, 140},            Control        {     enabled,    513        },
  82.         /* [21] */    {77, 80, 97, 140},            Control        {     enabled,    514        },
  83.         /* [22] */    {107, 80, 127, 140},        Control        {     enabled,    515        },
  84.         /* [23] */    {137, 80, 157, 140},        Control        {     enabled,    516        },
  85.         /* [24] */    {167, 80, 187, 140},        Control        {     enabled,    517        },
  86.         /* [25] */    {197, 80, 217, 140},        Control        {     enabled,    518        },
  87.         
  88.         /* [26] */    {15, 300, 31, 410},            StaticText    {    disabled,     "System CDEF"    },
  89.         /* [27] */    {15, 160, 31, 290},            StaticText    {    disabled,     "3D CDEF"    },
  90.     }
  91. };
  92.  
  93.  
  94. // make sure the RECTs for the CNTL resources match the DITL rects above or your your
  95. // dialog will 'flash' when it is drawn.
  96.  
  97. resource 'CNTL' (128) {
  98.     {197, 348, 217, 407},0,    visible,    1,        0,    
  99.     16*CDEF0+pushButProc+useWFont,    0,    "OK"
  100. };
  101. resource 'CNTL' (129) {
  102.     {167, 348, 187, 407},0,    visible,    1,        0,    
  103.     16*CDEF0+pushButProc+useWFont,    0,    "Cancel"
  104. };
  105.  
  106. resource 'CNTL' (130) {
  107.     {40, 300, 56, 410},    1,    visible,    1,        0,    
  108.     16*CDEF0+checkBoxProc+useWFont,    0,    "CheckBox"
  109. };
  110. resource 'CNTL' (131) {
  111.     {66, 300, 98, 410},    0,    visible,    1,        0,    
  112.     16*CDEF0+checkBoxProc+useWFont,    0,    "2 line\nTitle"
  113. };
  114.  
  115. resource 'CNTL' (132) {
  116.     {107, 300, 123, 410},1,    visible,    1,        0,    
  117.     16*CDEF0+radioButProc+useWFont,    0,    "RadioButton 1"
  118. };
  119. resource 'CNTL' (133) {
  120.     {128, 300, 144, 410},0,    visible,    1,        0,    
  121.     16*CDEF0+radioButProc+useWFont,    0,    "RadioButton 2"
  122. };
  123.  
  124.  
  125. resource 'CNTL' (150) {
  126.     {197, 208, 217, 267},0,    visible,    1,        0,    
  127.     16*CDEF+pushButProc+useWFont+useWBG,    0,    "Disable"
  128. };
  129.  
  130. resource 'CNTL' (152) {
  131.     {40, 160, 56, 290},    1,    visible,    1,        0,    
  132.     16*CDEF+checkBoxProc+useWFont,    0,    "CheckBox"
  133. };
  134. resource 'CNTL' (153) {
  135.     {66, 160, 98, 290},    0,    visible,    1,        0,    
  136.     16*CDEF+checkBoxProc+useWFont,    0,    "2 line\nTitle"
  137. };
  138.  
  139. resource 'CNTL' (154) {
  140.     {107, 160, 123, 290},1,    visible,    1,        0,    
  141.     16*CDEF+radioButProc+useWFont,    0,    "RadioButton 1"
  142. };
  143. resource 'CNTL' (155) {
  144.     {128, 160, 144, 290},0,    visible,    1,        0,    
  145.     16*CDEF+radioButProc+useWFont,    0,    "RadioButton 2"
  146. };
  147.  
  148. resource 'CNTL' (256, purgeable) {
  149.     {17, 10, 37, 70},    0,    visible,    1,        0,    
  150.     16*CDEF+useWFont,                0,    "Normal"
  151. };
  152.  
  153. resource 'CNTL' (257, purgeable) {
  154.     {47, 10, 67, 70},    0,    visible,    1,        0,    
  155.     16*CDEF+useWFont,                0,    "Blue"
  156. };
  157.  
  158. resource 'CNTL' (258, purgeable) {
  159.     {77, 10, 97, 70},    0,    visible,    1,        0,    
  160.     16*CDEF+useWFont,                0,    "Red"
  161. };
  162.  
  163. resource 'CNTL' (259, purgeable) {
  164.     {107, 10, 127, 70},    0,    visible,    1,        0,    
  165.     16*CDEF+useWFont,                0,    "Green"
  166. };
  167.  
  168. resource 'CNTL' (260, purgeable) {
  169.     {137, 10, 157, 70},    0,    visible,    1,        0,    
  170.     16*CDEF+useWFont,                0,    "Purple"
  171. };
  172. resource 'CNTL' (261, purgeable) {
  173.     {167, 10, 187, 70},    0,    visible,    1,        0,    
  174.     16*CDEF+useWFont,                0,    "Orange"
  175. };
  176. resource 'CNTL' (262, purgeable) {
  177.     {197, 10, 217, 70},    0,    visible,    1,        0,    
  178.     16*CDEF+useWFont,                0,    "Gray"
  179. };
  180.  
  181.  
  182. resource 'CNTL' (512, purgeable) {
  183.     {17, 80, 37, 140},        0,    visible,    1,        0,    
  184.     16*CDEF0+useWFont,                0,    "Normal"
  185. };
  186.  
  187. resource 'CNTL' (513, purgeable) {
  188.     {47, 80, 67, 140},        0,    visible,    1,        0,    
  189.     16*CDEF0+useWFont,                0,    "Blue"
  190. };
  191.  
  192. resource 'CNTL' (514, purgeable) {
  193.     {77, 80, 97, 140},        0,    visible,    1,        0,    
  194.     16*CDEF0+useWFont,                0,    "Red"
  195. };
  196.  
  197. resource 'CNTL' (515, purgeable) {
  198.     {107, 80, 127, 140},    0,    visible,    1,        0,    
  199.     16*CDEF0+useWFont,                0,    "Green"
  200. };
  201.  
  202. resource 'CNTL' (516, purgeable) {
  203.     {137, 80, 157, 140},    0,    visible,    1,        0,    
  204.     16*CDEF0+useWFont,                0,    "Purple"
  205. };
  206. resource 'CNTL' (517, purgeable) {
  207.     {167, 80, 187, 140},    0,    visible,    1,        0,    
  208.     16*CDEF0+useWFont,                0,    "Orange"
  209. };
  210. resource 'CNTL' (518, purgeable) {
  211.     {197, 80, 217, 140},    0,    visible,    1,        0,    
  212.     16*CDEF0+useWFont,                0,    "Gray"
  213. };
  214.  
  215. resource 'cctb' (257, "Blue", purgeable) {
  216.     {
  217.         /* [1] */    cFrameColor, 0, 0, 0xCCCC,
  218.         /* [2] */    cTextColor, 0, 0, 0xCCCC,
  219.         /* [3] */    cBodyColor, 0xCCCC, -1, -1
  220.     }
  221. };
  222.  
  223. resource 'cctb' (258, "Red", purgeable) {
  224.     {
  225.         /* [1] */    cFrameColor, 0xEEEE, 0, 0,
  226.         /* [2] */    cTextColor, 0xEEEE, 0, 0,
  227.         /* [3] */    cBodyColor, -1, 0xCCCC, 0xCCCC
  228.     }
  229. };
  230.  
  231. resource 'cctb' (259, "Green", purgeable) {
  232.     {
  233.         /* [1] */    cFrameColor, 0, 0x6666, 0,
  234.         /* [2] */    cTextColor, 0, 0x6666, 0,
  235.         /* [3] */    cBodyColor, 0xCCCC, -1, 0xCCCC
  236.     }
  237. };
  238.  
  239. resource 'cctb' (260, "Purple", purgeable) {
  240.     {
  241.         /* [1] */    cFrameColor, 0x6666, 0, 0x6666,
  242.         /* [2] */    cTextColor, 0x6666, 0, 0x6666,
  243.         /* [3] */    cBodyColor, 0xCCCC, 0xCCCC, -1
  244.     }
  245. };
  246.  
  247. resource 'cctb' (261, "Orange", purgeable) {
  248.     {
  249.         /* [1] */    cFrameColor, -1, 0x3333, 0,
  250.         /* [2] */    cTextColor, -1, 0x3333, 0,
  251.         /* [3] */    cBodyColor, -1, 0xCCCC, 0x9999
  252.     }
  253. };
  254.  
  255. resource 'cctb' (262, "Gray", purgeable) {
  256.     {
  257.         /* [1] */    cFrameColor, 0, 0, 0,
  258.         /* [2] */    cTextColor, 0, 0, 0,
  259.         /* [3] */    cBodyColor, 0xDDDD, 0xDDDD, 0xDDDD
  260.     }
  261. };
  262.  
  263.  
  264. resource 'cctb' (513, "Blue", purgeable) {
  265.     {
  266.         /* [1] */    cFrameColor, 0, 0, 0xCCCC,
  267.         /* [2] */    cTextColor, 0, 0, 0xCCCC,
  268.         /* [3] */    cBodyColor, 0xCCCC, -1, -1
  269.     }
  270. };
  271.  
  272. resource 'cctb' (514, "Red", purgeable) {
  273.     {
  274.         /* [1] */    cFrameColor, 0xEEEE, 0, 0,
  275.         /* [2] */    cTextColor, 0xEEEE, 0, 0,
  276.         /* [3] */    cBodyColor, -1, 0xCCCC, 0xCCCC
  277.     }
  278. };
  279.  
  280. resource 'cctb' (515, "Green", purgeable) {
  281.     {
  282.         /* [1] */    cFrameColor, 0, 0x6666, 0,
  283.         /* [2] */    cTextColor, 0, 0x6666, 0,
  284.         /* [3] */    cBodyColor, 0xCCCC, -1, 0xCCCC
  285.     }
  286. };
  287.  
  288. resource 'cctb' (516, "Purple", purgeable) {
  289.     {
  290.         /* [1] */    cFrameColor, 0x6666, 0, 0x6666,
  291.         /* [2] */    cTextColor, 0x6666, 0, 0x6666,
  292.         /* [3] */    cBodyColor, 0xCCCC, 0xCCCC, -1
  293.     }
  294. };
  295.  
  296. resource 'cctb' (517, "Orange", purgeable) {
  297.     {
  298.         /* [1] */    cFrameColor, -1, 0x3333, 0,
  299.         /* [2] */    cTextColor, -1, 0x3333, 0,
  300.         /* [3] */    cBodyColor, -1, 0xCCCC, 0x9999
  301.     }
  302. };
  303.  
  304. resource 'cctb' (518, "Gray", purgeable) {
  305.     {
  306.         /* [1] */    cFrameColor, 0, 0, 0,
  307.         /* [2] */    cTextColor, 0, 0, 0,
  308.         /* [3] */    cBodyColor, 0xDDDD, 0xDDDD, 0xDDDD
  309.     }
  310. };